﻿<Window x:Class="LayeredArchitectureSample.ClientBrowser.NewWareView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="New ware" Height="300" Width="300" WindowStartupLocation="CenterScreen" SizeToContent="WidthAndHeight" ResizeMode="NoResize"  FocusManager.FocusedElement="{Binding ElementName=WareCode}">
    <StackPanel Orientation="Vertical">
        <StackPanel Orientation="Horizontal">
            <Label Content="Code: "></Label>
            <TextBox TabIndex="0" x:Name="WareCode" HorizontalAlignment="Stretch" Text="{Binding Path=Code, Mode=TwoWay}" Width="250" MaxWidth="250"></TextBox>
        </StackPanel>
        <Button Content="Add" TabIndex="1" Margin="0,10,0,0" x:Name="AddWareButton" Click="AddWareButtonClick"></Button>
        <Button Content="Cancel" TabIndex="2" Click="CancelButtonClick"></Button>
    </StackPanel>
</Window>